package pl.edu.agh.mguesser.audioengine;

import javazoom.jl.player.Player;

/**
 * @author keiran
 */
public class JLayerStreamInProgress implements StreamInProgress {
    
    private Player player;

    public JLayerStreamInProgress(Player player) {
        this.player = player;
    }

    @Override
    public void stop() {
        if(!player.isComplete()) {
            player.close();
        }
    }

    Player getPlayer() {
        return player;
    }
    
}
